package com.xsjt.bean;

import java.io.Serializable;

/**
 * 用户实体
 * @author Administrator
 */
public class User implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	public User() {
		super();
	}

	public User(String username, String password ,String rolename) {
		super();
		this.username = username;
		this.password = password;
		this.rolename = rolename;
	}

	private int id;
    private String username;
    private String password;
    
    private String rolename;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", rolename=" + rolename + "]";
	}

}
